import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import { HotNewsList } from '@/components/baidu/HotNewsList'
import JingGame from '@/components/game/index'

function App() {
  const [count, setCount] = useState(0)

  return (
    <> 
      <div className="card">
        <button onClick={() => setCount((count) => count + 1)}>
          count is {count}
        </button>
        <p>
          Edit <code>src/App.jsx</code> and save to test HMR
        </p>
      </div>
      <p className="read-the-docs">
        Click on the Vite and React logos to learn more
      </p>
      <HotNewsList list={['11111111111111111111', '2222222222222222222', '33333333333333333333333333']} />
      <JingGame />
    </>
  )
}

export default App
